<?php
declare(strict_types=1);

namespace App\Http\Controllers\Image;

use App\Http\Controllers\Controller;
use App\Library\Response;
use App\Logic\User\Service\Image\ImageSubjectService;
use Illuminate\Http\JsonResponse;

class ImageSubjectController extends Controller
{
    public function all(): JsonResponse
    {
        return Response::success((new ImageSubjectService())->serviceSelect(request()->all()));
    }

    public function detail(): JsonResponse
    {
        return Response::success((new ImageSubjectService())->serviceFind(request()->all()));
    }
}
